package cn.lg.soar.cloud.core.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Lazy;

import java.time.Duration;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Lazy
@Getter
@Setter
@ConfigurationProperties(value = "lg.cloud.access-ctrl")
public class CloudProperties {

    /**
     * 凭证密钥（数据签名验签）
     */
    private String secret;

    /**
     * 凭证有效期，默认5分钟
     */
    private Duration expire = Duration.ofMinutes(5);

    /**
     * 拦截路径
     */
    private String[] includePaths;

    /**
     * 不拦截路径
     */
    private String[] excludePaths;

}
